﻿using CsvHelper.Configuration.Attributes;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DataAchive.Model.Excel.Export
{
    public class AiDefectStaticColumnAiC
    {
        [Name("基础数据栏目")]
        [Description("基础数据栏目")]
        public string FirstName => ">>>>>";


        [Name("生产数量")]
        [Description("生产数量")]
        public int ProductCount { get; set; }
        [Name("OK数量")]
        [Description("OK数量")]
        public int OKCount { get; set; }
        [Name("NG数量")]
        [Description("NG数量")]
        public int NGCount { get; set; }


        [Name("缺陷名称")]
        [Description("缺陷名称")]
        public string DefectName {  get; set; }

        [Name("缺陷数量")]
        [Description("缺陷数量")]
        public int DefectCount {  get; set; }
    }

    public class AiDefectStaticColumnHumanC
    {
        [Name("基础数据栏目")]
        [Description("基础数据栏目")]
        public string SecondName => ">>>>>";


        [Name("生产数量")]
        [Description("生产数量")]
        public int ProductCount { get; set; }
        [Name("OK数量")]
        [Description("OK数量")]
        public int OKCount { get; set; }
        [Name("NG数量")]
        [Description("NG数量")]
        public int NGCount { get; set; }


        [Name("缺陷名称(误检)")]
        [Description("缺陷名称(误检)")]
        public string DefectName { get; set; }

        [Name("缺陷数量")]
        [Description("缺陷数量")]
        public int DefectCount { get; set; }
    }

    public class DefectRateStaticColumn
    {
        


        [Name("缺陷名称")]
        [Description("缺陷名称")]
        public string DefectName { get; set; }

        [Name("缺陷数量")]
        [Description("缺陷数量")]
        public int DefectCount { get; set; }

        [Name("缺陷数量占总缺陷比重")]
        [Description("缺陷数量占总缺陷比重")]
        public decimal DefectRate { get; set; }
    }

    public class DataStaticsRate
    {

        [Name("直通率")]
        [Description("直通率")]
        public decimal DirectRate { get; set; }

        [Name("误判率")]
        [Description("误判率")]
        public decimal TotalFaultRate { get; set; }

        //[Name("判定超过10秒比率")]
        //[Description("判定超过10秒比率")]
        //public int TimeRate { get; set; }
        [Name("生产总数")]
        [Description("生产总数")]
        public int ProductNumber { get; set; }

        [Name("人工判ng数")]
        [Description("人工判ng数")]
        public int HumanNG { get; set; }

        [Name("Ai判ng数")]
        [Description("Ai判ng数")]
        public int AiNG { get; set; }
    }
}
